{% extends "base.html" %}
{%block title %} 图片采集 {% endblock %}
{%block init_menu %}pick{% endblock %}
{%block content_title %}采集列表 {% endblock %}
{% block content %}
<script type="text/javascript" src="/static/jquery-1.4.3.min.js"></script>
<div class="img_pick">
    <ul id="title">
        <li class="title l1">名称</li>
        <li class="title l2">连接</li>
        <li class="title l3">方式/时间</li>
        <li class="title l4">创建时间</li>
        <li class="title l5">操作</li>
    </ul>
    {% for list in pick_list %}
    <ul>
        <li class="l1">{{list.name}}</li>
        <li class="l2">{{list.base_url}}</li>
        <li class="l3">{% if list.method == 1 %}手动采集(<a href="/a/pick/start/{{list.key.name}}/">采集</a>){%else%}自动采集({{list.method_time}}){%endif%}</li>
        <li class="l4">{{list.created|humdate}}</li>
        <li class="l5"> <a href="/a/pick/edit/{{list.key.name}}/">编辑</a> | <a href="/a/pick/del/{{list.key.name}}/">删除</a></li>
    </ul>
    {% endfor %}
</div>
{% endblock %}